<%@page language="java" pageEncoding="GBK" import="entity.*,biz.*,biz.impl.*"%>
<%
 request.setCharacterEncoding("GBK");
 String title=request.getParameter("title");
 String content=request.getParameter("content");
 TopicBiz topicDao=new TopicBizImpl();
 int topicId=1;
 
 ReplyBiz replyBiz=new ReplyBizImpl();
 
 Reply reply=new Reply();
 reply.setTitle(title);
 reply.setContent(content);
 reply.setTopicId(topicId);
 reply.setUserId(1);
 replyBiz.addReply(reply);
 response.sendRedirect("../detail.jsp");
 %>